<?php

namespace AppBundle\Libs;

use AppBundle\Entity\P2pBidding;
use Doctrine\Common\Persistence\ObjectManager;

/**
 * Created by PhpStorm.
 * User: kcswag
 * Date: 12/3/17
 * Time: 2:56 PM
 */
class Publisher
{
    private $entityManager;

    public function __construct(ObjectManager $entityManager)
    {
        $this->entityManager = $entityManager;
    }

    public function publish(P2pBidding $project){

        $project->setBStatus('release');

        $this->entityManager->flush();
    }
}